<template>
  <div class="goodsdesc">
    <p class="title">{{info.title}}</p>
    <div v-html="info.content"></div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      info: {}
    };
  },
  methods: {
    getInfo() {
      this.$http.get("goods/getdesc/" + this.$route.params.id).then(result => {
        console.log(result);
        if (result.data.status == 0) {
          this.info = result.data.message[0];
        }
      });
    }
  },
  created() {
    this.getInfo();
  }
};
</script>
<style lang="scss">
.goodsdesc {
  .title {
    color: #2204ff;
  }
}
</style>